package com.example.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "team.sms")
@Data
public class SMSProperties {
     // 前面两个变量不是必须的，是我用来区分忘记密码和登录时，保存到redis的前缀
     public final static String FG = "fg_";
     public final static String LOGIN = "login_";
     private String regionId;
     private String accessKeyId;
     private String accessKeySecret;
     private String signName;
     private String templateCode;

    public static String getFG() {
        return FG;
    }

    public static String getLOGIN() {
        return LOGIN;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }
}